// src/router/index.ts
import { createRouter, createWebHistory } from "vue-router";
const staticRoutes = [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/LoginView.vue"),
  },
  {
    path: "/",
    name: "Layout",
    component: () => import("@/views/LayoutView.vue"),
  },
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: () => import("@/views/404PageView.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes: staticRoutes,
  scrollBehavior: () => ({ left: 0, top: 0 }),
});

export default router;
